package org.springmole.business.dao.impl;

import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;
import org.springmole.business.bean.SchemaResultData;


@Repository(AbstractSpringMoleDaoImpl.IMPLEMENTATION_BEAN_NAME_PREFIX + "mysql")
public class SpringMoleDaoMySQLImpl extends AbstractSpringMoleDaoImpl {
	private final static String MYSQL_DEFAULT_SCHEMA_NAME = "MySQL";
	
	
	@Override
	protected List<SchemaResultData> getSchemaResultDataList(DatabaseMetaData databaseMetaData) throws SQLException {
		List<SchemaResultData> schemaResultDataList = new ArrayList<SchemaResultData>();
		
		schemaResultDataList.add(new SchemaResultData(MYSQL_DEFAULT_SCHEMA_NAME));
		
		return schemaResultDataList;
	}
	
}
